package IC.AST;

import IC.Types.Type;

/**
 * Abstract base class for expression AST nodes.
 * 
 * @author Tovi Almozlino
 */
public abstract class Expression extends ASTNode {

    private Type contextType;

	/**
	 * Constructs a new expression node. Used by subclasses.
	 * 
	 * @param line
	 *            Line number of expression.
	 */
	protected Expression(int line) {
		super(line);
	}

    public IC.Types.Type getContextType() {
        return contextType;
    }

    public void setContextType(IC.Types.Type contextType) {
        this.contextType = contextType;
    }
}